package Servlet;//导入必须的包
import java.io.*;

import javax.servlet.*;
import javax.servlet.http.*;

public class DServlet extends HttpServlet{

	@Override
	protected void doGet(HttpServletRequest request, HttpServletResponse response)
			throws IOException, ServletException {
		response.setContentType("text/html");

		request.getParameter("name");
		request.getParameter("sex");
		request.getParameter("birthday");
		request.getParameter("nation");
		request.getParameter("self_introduction");
		request.getRequestDispatcher("output.jsp").forward(request,response);

	}
	//doPost方法
	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws IOException, ServletException {
		doGet(request, response);
	}
}
